<template>
	<y-base-page title="设置">
		<view class="content">
			<view class="y-block y-flex-between about-us" @click="toNext">
				<text>关于我们</text>
				<image class="c-jumpIcon" :src="imageUrlone+'/mine/right.png'" mode=""></image>
			</view>
		</view>
		<bottom-btn
		:btnWord="['退出登录']"
		:isRadius="false"
		@fromFooterBtn="fromFooterBtn" 
		></bottom-btn>
	</y-base-page>
</template>

<script>
import { loginOut } from '@/api/osms.js';
	export default {
		data() {
			return {
				imageUrlone:this.imageUrl
			};
		},
		methods:{
			// 点击关于我们
			toNext() {
				uni.navigateTo({
					url:'../setting/about-us/about-us'
				})
			},
			async fromFooterBtn(){
                await loginOut();
				let fromTime = uni.getStorageSync('fromTime');
				uni.clearStorage();
				uni.setStorageSync('fromTime',fromTime);
				uni.reLaunch({
					url:'../home/home'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
.content{
	.about-us{
		line-height: 70rpx;
		margin-top: 20rpx;
		font-size: 30rpx;
		color: $text-cbh-title;
		text{
			font-size: 38rpx;
		}
		.iconarrow{
			font-size: 18rpx;
			color: $border-color;
		}
	}
}
// .footer{
// 	position: fixed;
// 	bottom: 0;
// 	left: 0;
// 	button{
// 		width: 690rpx;
// 		height: 88rpx;
// 		background: #BF375A;
// 		color: white;
// 		border-radius: 10px;
// 		&:active {
// 			opacity: 0.6;
// 		}
// 	}
// }
</style>
